<?php
namespace app\index\controller;

use \think\Db;
use \think\View;
class Book
{
    public function GetAll()
    {
        // $books=Db::query('select * from BookInfo');
        $books=Db::table('books')->select();
        //var_dump($books);
        
        $view =new \think\View();
        $view ->assign("list",$books);
        return $view ->fetch('all');
        //return "hello! book";
    }
}
